package com.ynu.znkz.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;

/**
 * 页面跳转控制器，用于跳转前端静态页面
 */
@Controller
@CrossOrigin
public class PageJumpController {

    /**
     * 跳转到主页
     * @return
     */
    @GetMapping("/toLogin")
    public String index() {
        return "login";
    }
}
